package top.zxybird.common.constants;

public enum ClientType {

    mobile(1), wap(2), web(3), back(4), market(5), mobile_ios(6), mobile_android(7), mobile_wp(8), xzoneBackend(9);

    private int val;

    ClientType(int val) {
        this.setVal(val);
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public static ClientType getClientTypeByVal(int val) {
        for (ClientType type : ClientType.values()) {
            if (val == type.getVal()) {
                return type;
            }
        }
        return null;
    }

}
